<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        .top {
            width: 308px;
            border: 1px solid #000;
            box-sizing: border-box;
            padding: 0 30px;
        }

        .top .top-title {
            height: 30px;
            display: flex;
            flex-flow: row wrap;
            align-content: center;
        }

        .top .top-list {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            grid-template-rows: repeat(4, 1fr);
            grid-template-areas:
            "a1 a2 a2"
            "a3 a2 a2"
            "a4 a4 a5"
            "a6 a7 a7";
            height: 352px;
            gap: 8px;
        }

        .top .top-list div h3 {
            font-size: 12px;
            text-align: center;

        }

        .top .top-list div p {
            font-size: 12px;
            text-align: right;
            margin-right: 10px;
        }

        .top .top-list div:nth-of-type(1) {
            grid-area: a1;
        }

        .top .top-list div:nth-of-type(2) {
            grid-area: a2;
        }

        .top .top-list div:nth-of-type(3) {
            grid-area: a3;
        }

        .top .top-list div:nth-of-type(4) {
            grid-area: a4;
        }

        .top .top-list div:nth-of-type(5) {
            grid-area: a5;
        }

        .top .top-list div:nth-of-type(6) {
            grid-area: a6;
        }

        .top .top-list div:nth-of-type(7) {
            grid-area: a7;
        }


        .top-page {
            height: 45px;
            display: flex;
            justify-content: flex-end;
            flex-flow: row wrap;
            align-content: center;
        }

        .top-page span {
            padding: 0 6px;
            border: 1px solid #000;
            margin-left: 10px;
        }

        .theme1 {
            background-image: linear-gradient(#f00, #000);
        }

        .theme2 {
            background-image: linear-gradient(#f999, #fff);
        }

        .theme3 {
            background-image: linear-gradient(#f222, #000);
        }


    </style>
</head>
<body>
<div class="top">
    <div class="top-title">
        今日上榜
    </div>
    <div class="top-list">
        <div class="theme1">
            <p>实时热点</p>
            <h3>阿里第一颗芯</h3>
        </div>
        <div class="theme1">
            <p>实时热点</p>
            <h3>阿里第一颗芯</h3>
        </div>
        <div class="theme2">
            <p>实时热点</p>
            <h3>阿里第一颗芯</h3>
        </div>
        <div class="theme1">
            <p>实时热点</p>
            <h3>阿里第一颗芯</h3>
        </div>
        <div class="theme1">
            <p>实时热点</p>
            <h3>阿里第一颗芯</h3>
        </div>
        <div class="theme3">
            <p>实时热点</p>
            <h3>阿里第一颗芯</h3>
        </div>
        <div class="theme3">
            <p>实时热点</p>
            <h3>阿里第一颗芯</h3>
        </div>
    </div>

    <div class="top-page">
        <span>1</span>
        <span>2</span>
        <span>3</span>
    </div>
</div>
</body>
</html>
